package com.mills.gamebase.web;

import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.ServletRequestDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.mills.gamebase.service.Dict;

/**
 * Dieser Controller hat die Funktion bestimmte Hauptbereiche
 * der gamebase anzusteuern
 * 
 * @author Shane
 *
 */
@Controller
public class SystemController {
	
	@InitBinder
	protected void initBinder( ServletRequestDataBinder binder) {

	}
	
	@RequestMapping("/system/start.htm")
	public ModelAndView start(HttpServletRequest request)
	{
		ModelMap map = new ModelMap();
		map.addAttribute(Dict.MM_CONTENT, "system/start.jsp");
		
		map.addAttribute("upload_url", "../system/upload.htm");
		
		return new ModelAndView("index", map);
	}
}
